package com.headingdata.returnDemo;

public class ReturnDemo1 {

    public static void main(String[] args) {
        division(12,5);
    }

    public static void division(int a,int b) {
        if(b == 0) {
            System.out.println("0不可以做除数！");
            return;
        }
        System.out.println(a/b*1.0);
    }
}
